/*************************************************************************
 *                                                                       *
 * This file is part of the FreeMAPs distribution.  For full copyright   *
 * information, see COPYRIGHT and COPYING.LESSER.                        *
 *                                                                       *
 * Author:           sqbang                                              *
 * Email:            sqbang@ustc.edu                                     *
 * Date:             2011.08.22                                          *
 *                                                                       *
 *************************************************************************/

namespace FreeMAPs
{

//inline bool
//SimulationEnsemble::has_pde_equation_ensemble() const
//{
//    return (!d_pde_equation_ensembles.empty());
//}


//inline bool
//SimulationEnsemble::has_pde_equation_ensemble(
//    const std::string& eq_name) const
//{
//    return (d_pde_equation_ensembles.count (eq_name) > 0);
//}


//inline bool
//SimulationEnsemble::has_nonpde_equation_ensemble(
//    const std::string& eq_name) const
//{
//    return (d_nonpde_equation_ensembles.count (eq_name) > 0);
//}


//inline const PDEEquationEnsembleStrategy*
//SimulationEnsemble::get_pde_equation_ensemble(
//    const std::string& eq_name) const
//{
//    FREEMAPS_ASSERT (this->has_pde_equation_ensemble (eq_name));

//    return (d_pde_equation_ensembles.find (eq_name)->second);
//}


//inline PDEEquationEnsembleStrategy*
//SimulationEnsemble::get_pde_equation_ensemble(
//    const std::string& eq_name)
//{
//    FREEMAPS_ASSERT (this->has_pde_equation_ensemble (eq_name));

//    return (d_pde_equation_ensembles.find (eq_name)->second);
//}


inline const std::map<std::string, PDEEquationEnsembleStrategy*>&
SimulationEnsemble::get_pde_equation_ensembles() const
{
    return d_pde_equation_ensembles;
}


//inline const std::map<std::string, NonPDEEquationEnsembleStrategy*>&
//SimulationEnsemble::get_nonpde_equation_ensembles() const
//{
//    return d_nonpde_equation_ensembles;
//}

}
